<!doctype html>
<html lang="en"
      xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
</head>
<body>
<form method="post" th:action="@{/login}">
    <!--    <input type="hidden" name="_csrf" th:value="${_csrf.token}">-->
    <input type="text" name="username" value="hocgin"/><br>
    <input type="text" name="password" value="hocgin"/><br>
    <button type="submit">登录</button>
</form>

<form th:action="@{/oauth2/authorization/github}" method="GET">
    <!--    <input type="hidden" name="_csrf" th:value="${_csrf.token}"/>-->
    <input type="hidden" name="scope" value="read_stream,user_posts,user_photos"/>
    <button type="submit">github</button>
</form>

</body>
</html>
